package cn.keniykey.mc.viewlibrary.channel;

import org.bukkit.entity.Player;

public abstract class AbPacketReceiveHandler {
	private Player player;
	
	protected AbPacketReceiveHandler() {
	}
	
	void setPlayer(Player player1) {
		this.player = player1;
	}
	protected final Player getPlayer() {
		return this.player;
	}
	
	/**
	 * @return 是否拦截数据包，true拦截，false不拦截
	 */
	protected abstract boolean onServerReceivePacket(Object packet);
}